package com.gilight.base.dto.feier;

import com.github.pagehelper.util.StringUtil;

public class FeiErClientDto {
    //打印机编号(必填)
    private String sn;

    private String key;

    private String remark;

    private String carNum;

    public FeiErClientDto(String sn, String key, String remark, String carNum) {
        this.sn = sn;
        this.key = key;
        this.remark = remark;
        this.carNum = carNum;
    }

    @Override
    public String toString() {
        String snStr = sn+"#"+key;
        if(!StringUtil.isEmpty(remark)){
            snStr+="#"+remark;
        }
        if(!StringUtil.isEmpty(carNum)){
            snStr+="#"+carNum;
        }
        return snStr;
    }
}
